import VueRouter from "vue-router";
import Vue from "vue"; // 开始投放市场组件
import indexPage from '../components/indexPage.vue'; // 首页组件
import introduction from '../components/introduction.vue'; // 红梅简介组件
import material from '../components/material.vue'; // 原料介绍组件
import makeProduct from '../components/makeProduct.vue'; // 制作过程组件
import superMarket from '../components/superMarket.vue';

Vue.use(VueRouter)
const routes = [
    {path: '/', component: indexPage,name: 'IndexPage'},
    {path: '/introduction', component: introduction,name: 'introduction'},
    {path: '/material', component: material,name: 'material'},
    {path: '/makeProduct', component: makeProduct,name: 'makeProduct'},
    {path: '/superMarket', component: superMarket,name: 'superMarket'},
];

const router = new VueRouter({
    routes,
    mode: 'history'
});

export default router;
